<script setup lang="ts">

import { defineProps } from 'vue'
const props = defineProps(['value', 'label'])
const emit = defineEmits(['update:value'])
const update = (value: any) => {
    emit('update:value', value)

}
</script>
<template>
    <n-space data-tauri-drag-region justify="space-between">
        <span>{{ props.label }}</span>
        <n-switch :value="props.value" @update-value="update" />
    </n-space>
</template>
<style scoped></style>